﻿using System.Runtime.Serialization;

namespace Oxage.CNC.Models
{
	[DataContract]
	public class MachineDataModel
	{
		[DataMember(Name = "action", IsRequired = true)]
		public int Action
		{
			get;
			set;
		}

		[DataMember(Name = "line")]
		public string Line
		{
			get;
			set;
		}

		[DataMember(Name = "axis")]
		public char Axis
		{
			get;
			set;
		}

		[DataMember(Name = "dir")]
		public bool Direction
		{
			get;
			set;
		}

		[DataMember(Name = "en")]
		public bool Enable
		{
			get;
			set;
		}

		//[DataMember(Name = "mode")]
		//public int StepMode
		//{
		//  get;
		//  set;
		//}

		//[DataMember(Name = "speed")]
		//public int Speed
		//{
		//  get;
		//  set;
		//}
	}
}
